package datastructure.ch04_stacks.ch01_base;

/**
 * 数据结构
 *
 * @author guod
 * @version 1.0
 * 自定义栈的测试类
 */
public class MainStackTest {
    public static void main(String[] args) {
        /*=====================01基础方法=======================*/
        MyArrayStack myArrayStack = new MyArrayStack();
        myArrayStack.push(1);
        myArrayStack.push(2);
        myArrayStack.pop();
        myArrayStack.show();
        /*=====================02=======================*/
        MyStack stack = new MyStack();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        while (!stack.isEmpty()) {
            System.out.println(stack.pop());
        }
    }
}
